package xcmg.device.dao.mapper.logistic;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.logistic.LogisticWaybillDetailDO;
import xcmg.device.service.vo.logistic.LogisticWayLinkBillDetailVO;

import java.util.List;

@Mapper
public interface LogisticWaybillDetailMapper {

    int deleteBatch(@Param("details") List<LogisticWaybillDetailDO> details);

    int insert(LogisticWaybillDetailDO record);

    int insertSelective(LogisticWaybillDetailDO record);

    int batchInsert(@Param("records") List<LogisticWaybillDetailDO> records);

    LogisticWaybillDetailDO selectByPrimaryKey(String id);

    List<LogisticWaybillDetailDO> selectByWayBillId(String wayBillId);

    int updateByPrimaryKeySelective(LogisticWaybillDetailDO record);

    int updateByPrimaryKey(LogisticWaybillDetailDO record);

    int updateBatch(@Param("needUpdates") List<LogisticWaybillDetailDO> needUpdates);

    List<LogisticWayLinkBillDetailVO> deliveryReceiptTypeLinkDetails(@Param("wayBillId") String wayBillId);

    List<LogisticWayLinkBillDetailVO> threeOutTypeLinkDetails(@Param("wayBillId") String wayBillId);
}
